import os

for root, dirs, files in os.walk(input()):
    for d in dirs:
        print(d)
        print(os.path.join(root, d))

    for f in files:
        print(f)
        print(os.path.join(root, f))

